package xw.qxypt.common.utils;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * treegrid树形表格基础对象，后续的该类型的对象均继承该对象
 *
 */
@Data
public class BaseTree implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -9189631784252440402L;

    public String id;//节点id

    public String parentId;//节点父id

    public String name;

    public String level;

    public String iconCls = "folder";//节点样式，默认即可

    public Boolean leaf = true;//是否为叶子节点，true表示是叶子节点，false表示不是叶子节点

    public Boolean expanded = true; //是否展开，默认true,展开

    public List<BaseTree> children;//孩子节点
}